import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '类目名称',
    align: "center",
    dataIndex: 'category'
  },
  {
    title: '体验分',
    align: "center",
    dataIndex: 'experienceScore'
  },
  {
    title: '服务分',
    align: "center",
    dataIndex: 'serviceScore'
  },
  {
    title: '退货退款时长',
    align: "center",
    dataIndex: 'refundTime'
  },
  {
    title: '仅退款处理时长',
    align: "center",
    dataIndex: 'onlyRefundTime'
  },
  {
    title: '平均响应时长',
    align: "center",
    dataIndex: 'meanResponseTime'
  },
  {
    title: '不满意率',
    align: "center",
    dataIndex: 'dissatisfationRate'
  },
  {
    title: '平台求助率',
    align: "center",
    dataIndex: 'platformCallRate'
  },
  {
    title: '售后拒绝率',
    align: "center",
    dataIndex: 'afterSaleRejectionRate'
  },
  {
    title: '创建时间',
    align: "center",
    dataIndex: 'createTime'
  },
  {
    title: '修改时间',
    align: "center",
    dataIndex: 'updateTime'
  },
  {
    title: '操作人',
    align: "center",
    dataIndex: 'createBy'
  },
];

// 高级查询数据
export const superQuerySchema = {
  category: {title: '类目名称',order: 0,view: 'text', type: 'string',},
  experienceScore: {title: '体验分',order: 1,view: 'text', type: 'string',},
  serviceScore: {title: '服务分',order: 2,view: 'text', type: 'string',},
  refundTime: {title: '退货退款时长',order: 3,view: 'text', type: 'string',},
  onlyRefundTime: {title: '仅退款处理时长',order: 4,view: 'text', type: 'string',},
  meanResponseTime: {title: '平均响应时长',order: 5,view: 'text', type: 'string',},
  dissatisfationRate: {title: '不满意率',order: 6,view: 'text', type: 'string',},
  platformCallRate: {title: '平台求助率',order: 7,view: 'text', type: 'string',},
  afterSaleRejectionRate: {title: '售后拒绝率',order: 8,view: 'text', type: 'string',},
  createTime: {title: '创建时间',order: 9,view: 'datetime', type: 'string',},
  updateTime: {title: '修改时间',order: 10,view: 'datetime', type: 'string',},
  createBy: {title: '操作人',order: 11,view: 'text', type: 'string',},
};
